const Controller = require('egg').Controller;
module.exports = class PlaceController extends Controller {
    async index(ctx){
        let userId = ctx.request.query.userId;
        if(!userId){
            ctx.body={
                msg:'参数userId不能为空'
            }
            return;
        }
        ctx.body = await ctx.model.Place.find({userId});
    }
}